package com.elonnx.service;

import com.elonnx.dao.StudentDao;
import com.elonnx.entity.Student;

import java.util.List;

/**
 * @author 马元
 * @date 2024-07-12
 */
public class StudentService {

    public List<Student> findList() {
        StudentDao studentDao = new StudentDao();
        return studentDao.findList();
    }

    public void add(String name, String age, String gender, String birthday, String money) {
        StudentDao studentDao = new StudentDao();
        studentDao.add(name, age, gender, birthday, money);
    }

}
